package com.btpn.custody.common;

import java.text.SimpleDateFormat;

public class Constant {

	public static final String NEW_LINE 	= System.getProperty("line.separator");
	public static final String ARROW_RIGHT	= " -> ";
	public static final String STRIP		= " - ";
	public static final String DEFAULT_PASSWORD	= "btpn123";
	
	/*
	 * ================================ STATUS MD ==================================
	 * NEW:0, 
	 * (NPY:1, FAIL:-1), 
	 * RECEIVED:2, 
	 * (IN_PROGRESS:3, TBO:-3), 
	 * WAIT_APPROVAL:4, 
	 * (APPROVED:5, REJECTED:-5),
	 * UPLOADED:6, FAIL_UPLOAD:-6
	 */
	public static final String STATUS__MD_NEW			= "0";
	public static final String STATUS__MD_NPY			= "1";
	public static final String STATUS__MD_FAIL			= "-1";
	public static final String STATUS__MD_RECEIVED		= "2";
	public static final String STATUS__MD_COMPLETED		= "3";
	public static final String STATUS__MD_TBO			= "-3";
	public static final String STATUS__MD_WAIT4APP		= "4";
	public static final String STATUS__MD_APPROVED		= "5";
//	public static final String STATUS__MD_REJECTED		= "-5";
	public static final String STATUS__MD_RESPONSED		= "6";
	public static final String STATUS__MD_FAIL_UPLOAD	= "-6";
	
	/*
	 * ================================ CUSTOMER_TYPE ==================================
	 */
	public static final String CST_INDIVIDU 		= "B1UM040506";
	public static final String CST_NON_INDIVIDU 	= "B2BINI0203";
	
	public static final String TYPE_INDIVIDU		= "individu";
	public static final String TYPE_NON_INDIVIDU	= "non_individu";
	
	/*
	 * ================================ TL_MD Action ==================================
	 */
	public static final String ACTION__CREATE 	= "C";
	public static final String ACTION__UPDATE	= "U";
	public static final String ACTION__DELETE	= "D";
	
		
	
	public static final String TYPE__DAILY 		= "DAILY";		
	public static final String TYPE__MANUAL		= "MANUAL";		
	public static final String TYPE__INIT		= "INIT";	
	
	
	/*
	 * ================================ OTHER ==================================
	 */
//	public static final String PARAM_AREA_ID_KEY 	= "AREA_ID";
	public static final String[] monthName = {"", "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"};
	public static final String SUFFIX_CMA = "CMA";
	public static final String SUFFIX_CMB = "CMB";
	public static final String SUFFIX_CMC = "CMC";
	public static final String SUFFIX_CMD = "CMD";
	
	/*
	 * ================================ SLA ==================================
	 */
	public static final String PARAM_SLA 		= "SLA";
//	public static final String STATUS__COMPLETE_BY_SYSTEM 	= "1";
//	public static final String STATUS__WAIT 				= "0";
	public static final String STATUS__OUT_OF_DATE 			= "-";
	public static final String STATUS__ON_TIME	 			= "+";
	public static final Integer DEFAULT_SLA_VALUE			= 3;
	
	/*
	 * ================================ STATUS SEND EMAIL, DL LOG ==================================
	 */
	public static final String STATUS__ERROR 		= "ERROR";
	public static final String STATUS__NOT_EMAIL	= "NOT_EMAIL";
	public static final String STATUS__READY 		= "READY";			// ready update to EQ
	public static final String STATUS__SUCCESS 		= "SUCCESS";		// SUCCESS : success update in EQ
	public static final String STATUS__FAIL 		= "FAIL";	
	public static final String STATUS__PROGRESS		= "ON PROGRESS";
	
	/*
	 * ================================ DATE FORMAT ==================================
	 */
	public static final String FORMAT_PRESENTATION 		= "dd MMMM, yyyy";
	public static final String FORMAT_SQLSERVER 		= "yyyy-MM-dd";			// based on java format
	public static final String FORMAT_EQ_FILE 			= "ddHHmmSSss";
	public static final String FORMAT_EQ_EXPORT			= "ddMMyy";
	public static final String FORMAT_REPORT	 		= "yyyyMMdd";
	
	public static SimpleDateFormat formatSQLServer = new SimpleDateFormat(Constant.FORMAT_SQLSERVER);
	
	/*
	 * ================================ TABLE & VIEW ==================================
	 */
	public static final String DWH_VW_COUNTRY 	= "VI_CMT_M_COUNTRY";
	public static final String DWH_VW_CST_TYPE 	= "VI_CMT_M_CUSTOMER_TYPE";
	public static final String DWH_VW_ACC_TYPE 	= "VI_CMT_M_ACCOUNT_TYPE";
	public static final String DWH_VW_PARAM		= "VI_CMT_M_PARAM";
	
	public static final String DWH_VW_CIF		= "VI_CMT_CIF";		// one to
	public static final String DWH_VW_ACCOUNT	= "VI_CMT_ACCOUNT";	// many
	public static final String DWH_VW_ADDRESS	= "VI_CMT_ADDRESS";	// many
	
	public static final String CMT_CIF	 		= "TEMP_CIF";
	public static final String CMT_ACCOUNT 		= "TEMP_ACCOUNT";
	public static final String CMT_ADDRESS 		= "TEMP_ADDRESS";
	public static final String CMT_M_PARAM 		= "M_PARAMETER";
	
	public static final String DAMARO_VW_USER	= "LAPORAN_BUKA_REKENING";
	
	/*
	 * ================================ PARAMETER TYPE ==============================
	 * This code used to get parameters in CMT.TBL_M_PARAM
	 */
	public static final String P0001 = "1111";	// country (i define the code)
	public static final String P0002 = "2222";	// customer type (i define the code)
	public static final String P0003 = "3333";	// account type (i define the code)
	public static final String P0004 = "4444";	// SLA
	
	public static final String P0102 = "0102";	// ID_TYPE
	public static final String P0108 = "0108";	// RELIGION
	public static final String P0109 = "0109";	// EDUCATION
	public static final String P0110 = "0110";	// CURRENT_INCOME
	public static final String P0111 = "0111";	// SOURCE_INCOME
	public static final String P0112 = "0112";	// PURPOSE
	public static final String P0118 = "0118";	// MARITAL_STATUS
	public static final String P0124 = "0124";	// HUB_AHLI_WARIS
	public static final String P0137 = "0137";	// LAP_KEUANGAN
	public static final String P0140 = "0140";	// HUB_DENGAN_BANK	
	public static final String P0141 = "0141";	// LBU_GOL_NASABAH
	public static final String P0142 = "0142";	// HR_CUSTOMER
	public static final String P0143 = "0143";	// HR_BUSSINESS
	public static final String P0144 = "0144";	// HR_COUNTRIES
	public static final String P0145 = "0145";	// HR_PRODUCT
	public static final String P0146 = "0146";	// ADDITIONAL_INCOME
	
	
	/*
	 * ================================ ROLE & USER ==================================
	 */
	public static final String ROLE_ADMIN		= "R_ADMIN";
	public static final String ROLE_APPROVAL	= "R_APPROVAL";
	public static final String ROLE_AREA		= "R_AREA";
	public static final String ROLE_BRANCH		= "R_BRANCH";
	public static final String ROLE_CHECKLIST	= "R_CHECKLIST";
	public static final String ROLE_COMPLETING	= "R_COMPLETING";
	public static final String ROLE_MANUAL		= "R_MANUAL_DL";
	public static final String ROLE_PARAMETER	= "R_PARAMETER";
	public static final String ROLE_RECEIVING	= "R_RECEIVING";
	public static final String ROLE_REGION		= "R_REGION";
	public static final String ROLE_REPORT1		= "R_REPORT1";
	public static final String ROLE_REPORT2		= "R_REPORT2";
	public static final String ROLE_REPORT3		= "R_REPORT3";
	public static final String ROLE_REPORT4		= "R_REPORT4";
	public static final String ROLE_REPORT5		= "R_REPORT5";
	
//	public static final String ROLE_SUPERVISOR	= "ROLE_SUPERVISOR";
//	public static final String ROLE_USER		= "ROLE_USER";
//	public static final String ROLE_ROH			= "ROLE_ROH";
	
	public static final String USER_SYSTEM		= "SYSTEM";
	public static final String USER_ADMIN		= "ADMIN";
	
	/*
	 * ================================ ERROR ==================================
	 */
	public static final String E_ACC_DUP			= "DUPLICATE ACCOUNT";
//	public static final String ROLE_USER		= "ROLE_USER";
}
